package com.ys.entity.overseas;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TOS_PurchasePlanSon", catalog="Id")
public class TosPurchasePlanSon extends BaseEntity<TosPurchasePlanSon> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="ProductSelectionItemId", nameJava="productSelectionItemId", typeDataBase="bigint")
	private Long productSelectionItemId;
	@YsField(nameDataBase="ProductImg", nameJava="productImg", typeDataBase="varchar")
	private String productImg;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="ProductName", nameJava="productName", typeDataBase="varchar")
	private String productName;
	@YsField(nameDataBase="PurchaseAmount", nameJava="purchaseAmount", typeDataBase="decimal")
	private BigDecimal purchaseAmount;
	@YsField(nameDataBase="DeliveryAmount", nameJava="deliveryAmount", typeDataBase="decimal")
	private BigDecimal deliveryAmount;
	@YsField(nameDataBase="StockNum", nameJava="stockNum", typeDataBase="int")
	private Integer stockNum;
	@YsField(nameDataBase="PurchaseNum", nameJava="purchaseNum", typeDataBase="int")
	private Integer purchaseNum;
	@YsField(nameDataBase="PlatformId", nameJava="platformId", typeDataBase="bigint")
	private Long platformId;
	@YsField(nameDataBase="OrderCode", nameJava="orderCode", typeDataBase="varchar")
	private String orderCode;
	@YsField(nameDataBase="Consignee", nameJava="consignee", typeDataBase="varchar")
	private String consignee;
	@YsField(nameDataBase="AddressLine", nameJava="addressLine", typeDataBase="varchar")
	private String addressLine;
	@YsField(nameDataBase="City", nameJava="city", typeDataBase="varchar")
	private String city;
	@YsField(nameDataBase="PostalCode", nameJava="postalCode", typeDataBase="varchar")
	private String postalCode;
	@YsField(nameDataBase="Phone", nameJava="phone", typeDataBase="varchar")
	private String phone;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TosPurchasePlanSon setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TosPurchasePlanSon setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getProductSelectionItemId() {
		return productSelectionItemId;
	}
	public TosPurchasePlanSon setProductSelectionItemId(Long productSelectionItemId) {
		this.productSelectionItemId = productSelectionItemId;
		return this;
	}
	public String getProductImg() {
		return productImg;
	}
	public TosPurchasePlanSon setProductImg(String productImg) {
		this.productImg = productImg;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TosPurchasePlanSon setCode(String code) {
		this.code = code;
		return this;
	}
	public String getProductName() {
		return productName;
	}
	public TosPurchasePlanSon setProductName(String productName) {
		this.productName = productName;
		return this;
	}
	public BigDecimal getPurchaseAmount() {
		return purchaseAmount;
	}
	public TosPurchasePlanSon setPurchaseAmount(BigDecimal purchaseAmount) {
		this.purchaseAmount = purchaseAmount;
		return this;
	}
	public BigDecimal getDeliveryAmount() {
		return deliveryAmount;
	}
	public TosPurchasePlanSon setDeliveryAmount(BigDecimal deliveryAmount) {
		this.deliveryAmount = deliveryAmount;
		return this;
	}
	public Integer getStockNum() {
		return stockNum;
	}
	public TosPurchasePlanSon setStockNum(Integer stockNum) {
		this.stockNum = stockNum;
		return this;
	}
	public Integer getPurchaseNum() {
		return purchaseNum;
	}
	public TosPurchasePlanSon setPurchaseNum(Integer purchaseNum) {
		this.purchaseNum = purchaseNum;
		return this;
	}
	public Long getPlatformId() {
		return platformId;
	}
	public TosPurchasePlanSon setPlatformId(Long platformId) {
		this.platformId = platformId;
		return this;
	}
	public String getOrderCode() {
		return orderCode;
	}
	public TosPurchasePlanSon setOrderCode(String orderCode) {
		this.orderCode = orderCode;
		return this;
	}
	public String getConsignee() {
		return consignee;
	}
	public TosPurchasePlanSon setConsignee(String consignee) {
		this.consignee = consignee;
		return this;
	}
	public String getAddressLine() {
		return addressLine;
	}
	public TosPurchasePlanSon setAddressLine(String addressLine) {
		this.addressLine = addressLine;
		return this;
	}
	public String getCity() {
		return city;
	}
	public TosPurchasePlanSon setCity(String city) {
		this.city = city;
		return this;
	}
	public String getPostalCode() {
		return postalCode;
	}
	public TosPurchasePlanSon setPostalCode(String postalCode) {
		this.postalCode = postalCode;
		return this;
	}
	public String getPhone() {
		return phone;
	}
	public TosPurchasePlanSon setPhone(String phone) {
		this.phone = phone;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TosPurchasePlanSon setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TosPurchasePlanSon setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TosPurchasePlanSon setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TosPurchasePlanSon tosPurchasePlanSon(
		String pbid,
		Long productSelectionItemId,
		String productImg,
		String code,
		String productName,
		BigDecimal purchaseAmount,
		BigDecimal deliveryAmount,
		Integer stockNum,
		Integer purchaseNum,
		Long platformId,
		String orderCode,
		String consignee,
		String addressLine,
		String city,
		String postalCode,
		String phone,
		Integer status
			) {
		TosPurchasePlanSon entity = new TosPurchasePlanSon();
		entity.setPbid(pbid);
		entity.setProductSelectionItemId(productSelectionItemId);
		entity.setProductImg(productImg);
		entity.setCode(code);
		entity.setProductName(productName);
		entity.setPurchaseAmount(purchaseAmount);
		entity.setDeliveryAmount(deliveryAmount);
		entity.setStockNum(stockNum);
		entity.setPurchaseNum(purchaseNum);
		entity.setPlatformId(platformId);
		entity.setOrderCode(orderCode);
		entity.setConsignee(consignee);
		entity.setAddressLine(addressLine);
		entity.setCity(city);
		entity.setPostalCode(postalCode);
		entity.setPhone(phone);
		entity.setStatus(status);
		return entity;
	}
}